<?php /* Smarty version Smarty-3.1.11, created on 2012-10-08 12:11:35
         compiled from "_templates\myprofile\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:38715072a6d76ab477-33820145%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8bf17a6ad877466e0f41f0bf14f28d0c774ba892' => 
    array (
      0 => '_templates\\myprofile\\index.tpl',
      1 => 1349677401,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '38715072a6d76ab477-33820145',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'userID' => 0,
    'value' => 0,
    'item' => 0,
    'access' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5072a6d7893872_90566341',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5072a6d7893872_90566341')) {function content_5072a6d7893872_90566341($_smarty_tpl) {?><article class="module width_full">
    <header><h3><?php echo $_smarty_tpl->getConfigVariable('actions');?>
</h3></header>
    <table width="100%" cellpadding="3" cellspacing="1">
            <tbody>
                    <tr>
							<th align="center" class="header"><a href="index.php?mod=myprofile&userID=<?php echo $_smarty_tpl->tpl_vars['userID']->value;?>
"><?php echo $_smarty_tpl->getConfigVariable('edit');?>
</a></th>
                            <th align="center" class="header"><a href="index.php?mod=profile&userID=<?php echo $_smarty_tpl->tpl_vars['userID']->value;?>
"><?php echo $_smarty_tpl->getConfigVariable('profile');?>
</a></th>
                            <th align="center" class="header"><a href="index.php?mod=profile&page=mails&userID=<?php echo $_smarty_tpl->tpl_vars['userID']->value;?>
"><?php echo $_smarty_tpl->getConfigVariable('mails');?>
</a></th>
                            <th align="center" class="header"><a href="index.php?mod=profile&page=quests&userID=<?php echo $_smarty_tpl->tpl_vars['userID']->value;?>
"><?php echo $_smarty_tpl->getConfigVariable('quest');?>
</a></th>
                    </tr>
            </tbody>
    </table>
</article>
<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['value']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
<form method="post">
<article class="module width_full">
    <header><h3><?php echo $_smarty_tpl->getConfigVariable('myprofile_title');?>
</h3></header>
    <div class="module_content">
        <fieldset>
            <label><?php echo $_smarty_tpl->getConfigVariable('username');?>
</label>
            <input type="text" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
" readonly>
        </fieldset>
        <fieldset style="width:48%; float:left; margin-right: 3%;">
            <label><?php echo $_smarty_tpl->getConfigVariable('mail');?>
</label>
            <input type="text" name="mail" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['email'];?>
" >
        </fieldset>
        <fieldset style="width:48%; float:left;">
            <label><?php echo $_smarty_tpl->getConfigVariable('credits');?>
</label>
            <input type="text" name="credits" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['credits'];?>
" >
        </fieldset>
        <fieldset style="width:48%; float:left; margin-right: 3%;">
            <label><?php echo $_smarty_tpl->getConfigVariable('access_level');?>
</label>
            <select name="accesslevel" style="width:92%;">
                <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['access_level'];?>
"><?php echo $_smarty_tpl->getConfigVariable('currently');?>
 <?php echo $_smarty_tpl->tpl_vars['item']->value['access'];?>
</option>
				<?php echo $_smarty_tpl->tpl_vars['access']->value;?>

            </select>
        </fieldset>
        <fieldset style="width:48%; float:left;">
            <div style="float:left; width:48%;">
            <label><?php echo $_smarty_tpl->getConfigVariable('activated');?>
</label><br /><br />
            <select name="activated">
                <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['activated'];?>
"><?php echo $_smarty_tpl->getConfigVariable('currently');?>
 <?php if ($_smarty_tpl->tpl_vars['item']->value['activated']==1){?> <?php echo $_smarty_tpl->getConfigVariable('isactivated');?>
 <?php }else{ ?> <?php echo $_smarty_tpl->getConfigVariable('notactivated');?>
 <?php }?></option>
                <option value="1"><?php echo $_smarty_tpl->getConfigVariable('isactivated');?>
</option>
                <option value="0"><?php echo $_smarty_tpl->getConfigVariable('notactivated');?>
</option>
            </select>
            </div>
            <div style="float:left; width:48%;">
            <label><?php echo $_smarty_tpl->getConfigVariable('lastadress');?>
</label>
            <input type="text" name="ip" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['last_ip'];?>
" readonly>
            </div>
        </fieldset><div class="clear"></div>
  
    </div>
    <footer>
        <div class="submit_link">
			<a href="index.php?mod=myprofile&page=new"><input type="button" value="<?php echo $_smarty_tpl->getConfigVariable('new');?>
"  class="alt_btn"></a>
            <input type="submit" value="<?php echo $_smarty_tpl->getConfigVariable('submit');?>
"  name="data_submit" class="alt_btn">
        </div>
    </footer>
</article>
</form>

<form method="post">
<article class="module width_full">
    <header><h3><?php echo $_smarty_tpl->getConfigVariable('password_title');?>
</h3></header>
    <div class="module_content">
        <fieldset>
            <label><?php echo $_smarty_tpl->getConfigVariable('currently');?>
</label>
            <input type="password" name="currently">
        </fieldset>
        <fieldset>
            <label><?php echo $_smarty_tpl->getConfigVariable('password');?>
</label>
            <input type="password" name="new_pw">
        </fieldset>
        <fieldset>
            <label><?php echo $_smarty_tpl->getConfigVariable('password_repeat');?>
</label>
            <input type="password" name="new_pw_rpt">
        </fieldset>
        <div class="clear"></div>
  
    </div>
    <footer>
        <div class="submit_link">
            <input type="submit" name="pw_submit" value="<?php echo $_smarty_tpl->getConfigVariable('submit');?>
" class="alt_btn">
        </div>
    </footer>
</article>
</form>
<?php } ?>

<div class="modal" id="edited">
        <h3><?php echo $_smarty_tpl->getConfigVariable('edited');?>
</h3>
		<p><?php echo $_smarty_tpl->getConfigVariable('success_edited');?>
</p>
</div>

<div class="modal" id="saved">
        <h3><?php echo $_smarty_tpl->getConfigVariable('saved');?>
</h3>
		<p><?php echo $_smarty_tpl->getConfigVariable('success_saved');?>
</p>
</div>
<div class="modal" id="wrong_rpt">
        <h3><?php echo $_smarty_tpl->getConfigVariable('wrong_rpt');?>
</h3>
		<p><?php echo $_smarty_tpl->getConfigVariable('success_wrong_rpt');?>
</p>
</div>
<div class="modal" id="wrong_cnt">
        <h3><?php echo $_smarty_tpl->getConfigVariable('wrong_cnt');?>
</h3>
		<p><?php echo $_smarty_tpl->getConfigVariable('success_wrong_cnt');?>
</p>
</div><?php }} ?>